<template>
  <div>
    <el-dialog :title="title" :visible.sync="visible" :width="width" append-to-body :show-close="false"
      :close-on-press-escape="false" :close-on-click-modal="false">
      <slot />
      <div slot="footer" class="dialog-footer">
        <slot name="footer">
        </slot>
      </div>

    </el-dialog>
  </div>
</template>

<script>

export default {
  name: 'ADialogKeep',
  props: {
    title: {
      type: String,
      default: ''
    },
    width: String,
    visible: Boolean
  }
}
</script>

<style lang="scss" scoped>

</style>